package cn.hd.authorService.service.user;

import cn.hd.commonService.vo.Result;
import cn.hd.commonService.entity.SysUser;
import cn.hd.commonService.vo.function.FunctionAuthorityVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * created by dsl on 2022/9/15
 */
@FeignClient(name = "userService")//开启指定服务的远程调用
public interface UserService {

    @PostMapping("/user/getUserByAccount")
    public Result<SysUser> getUserByAccount(@RequestParam(name = "account") String account);

    @PostMapping("/function/getAuthorityListByUserId")
    public Result<List<FunctionAuthorityVo>> getAuthorityListByUserId(@RequestParam(name = "userId") Integer userId);
}
